package com.shuhan.service.impl;

import com.shuhan.dao.UserDao;
import com.shuhan.dao.impl.UserDaoImpl;
import com.shuhan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * --- 万物归集  不随你我 ---
 * <p>
 * 快捷短语
 * main ==  public static void main(String[] args);
 * sout ==  System.out.println();
 *
 * @author shuhan
 * @date 2025/4/2
 * @desc 业务层实现类
 */
@Service // 对业务层进行IOC操作的注解
public class UserServiceImpl implements UserService {

    @Autowired
    @Qualifier("userdaoimpl")
    private UserDao userDao;

    @Override
    public void findAll() {
        System.out.println("业务层正在处理数据...");
        userDao.findAll();

    }
}
